﻿@namespace Masa.Blazor.Presets
@inherits PDateTimePickerViewBase<TValue>
@typeparam TValue

<div class="@BasePickerBlock.Element("view")">
    <MDatePicker Value="InternalDate"
                 ValueChanged="DateChanged"
                 TValue="DateOnly?"
                 AllowedDates="@AllowedDates"
                 ActivePicker="@ActiveDatePicker"
                 Color="@Color"
                 DayFormat="@DayFormat"
                 Disabled="@Disabled"
                 FirstDayOfWeek="@FirstDayOfWeek"
                 HeaderColor="@HeaderColor"
                 HeaderDateFormat="@HeaderDateFormat"
                 Locale="@Locale"
                 Max="@MaxDate"
                 Min="@MinDate"
                 MonthFormat="@MonthFormat"
                 NoTitle="@NoTitle"
                 NextIcon="@NextIcon"
                 PrevIcon="@PrevIcon"
                 Reactive="@Reactive"
                 Readonly="@Readonly"
                 Scrollable="@Scrollable"
                 ShowAdjacentMonths="@ShowAdjacentMonths"
                 ShowCurrent="@ShowCurrent"
                 ShowWeek="@ShowWeek"
                 TitleDateFormat="@TitleDateFormat"
                 WeekdayFormat="@WeekdayFormat"
                 YearFormat="@YearFormat"
                 YearIcon="@YearIcon"
                 Dark="@Dark"
                 Light="@Light">
    </MDatePicker>
    <MTimePicker Value="InternalTime"
                 ValueChanged="TimeChanged"
                 AllowedHours="@AllowedHours"
                 AllowedMinutes="@AllowedMinutes"
                 AllowedSeconds="@AllowedSeconds"
                 AmPmInTitle="@AmPmInTitle"
                 Color="@Color"
                 Disabled="@Disabled"
                 HeaderColor="@HeaderColor"
                 Format="@TimeFormat"
                 Max="@MaxTime"
                 Min="@MinTime"
                 NoTitle="@NoTitle"
                 Readonly="@Readonly"
                 Scrollable="@Scrollable"
                 UseSeconds="@UseSeconds"
                 Dark="@Dark"
                 Light="@Light"
                 OnHourClick="OnHourClick">
    </MTimePicker>
</div>
